﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProjectChords.Services.Models;
using ProjectChords.Services.API;

namespace ProjectChords.Services.Impl.Memory
{
    public class QuizServiceInMemoryImpl : GenericInMemoryService<QuizItem>, IQuizService
    {
        public QuizServiceInMemoryImpl()
            : base()
        {
        }

        public List<QuizItem> GetAllQuizzesForContentItem(string contentId)
        {
            return GetAllItemsForGivenConstraint(contentId);
        }

        public override string GetConstraintValue(QuizItem obj)
        {
            return obj.ContentItemId;
        }
    }
}
